import { Component } from 'react';
import { renderRoutes } from 'react-router-config';
import { Link } from 'react-router-dom';
class About extends Component {
    constructor(props) {
        super()
        console.log(props)
    }
    render() {
        return (
        <div className="about">
                这是about页面
                <Link to="/about/child">进入child页面</Link>
                {
                    renderRoutes(this.props.route.children)
                }
        </div>
        );
    }
}


export default About;